package demo1;

import java.util.Scanner;

public class demo_1 {
    public static void main(String[] args) {
        String name;
        String age;
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入姓名");
        name = sc.next();

        System.out.println("请输入年龄");
        age = sc.next();

        System.out.println("用户的姓名为：" + name + " 年龄为：" + age);
    }

}
